"use strict"
import * as crypto from "crypto";

// Node的Crypto里面会先对key进行分散，得到实际传入密钥加密的值！！！
const cipher = crypto.createCipheriv("des-ecb", new Buffer("1122334455667788","hex"),"");
cipher.setAutoPadding(false);
let encrypted = cipher.update(new Buffer("11223344556677881122334455667788","hex"), "utf8", "hex");
encrypted += cipher.final("hex");
console.log(encrypted);




